var BulkEntryView = Backbone.View.extend({
	initialize : function() {
		this.render();
	},
	
	render : function() {
		var t = this;

		var html = $("#bulk_entry_template").html();
		this.$el.html(html);
		//this.renderFlipButton();
		// this.renderSticky();
		
	},	
	update: function(){
						
	},
	updateCategory : function(event, obj, data) {

		var html = "<option value=''></option>";
		if (!!data) {
			var arr = obj.fakeData[data.selected];
			for (var i in arr) {
				html += "<option>" + arr[i] + "</option>";
			}
		}
		obj.combos[1].ui.html(html);
		obj.combos[1].ui.trigger("liszt:updated");

	},
	search : function() {

	}
}); 

var BulkUploadView = Backbone.View.extend({
	initialize : function() {
		this.render();
	},
	
	render : function() {
		var t = this;

		var html = $("#bulk_upload_template").html();
		this.$el.html(html);
		//this.renderFlipButton();
		// this.renderSticky();
		
	},	
	update: function(){
						
	},
	updateCategory : function(event, obj, data) {

		var html = "<option value=''></option>";
		if (!!data) {
			var arr = obj.fakeData[data.selected];
			for (var i in arr) {
				html += "<option>" + arr[i] + "</option>";
			}
		}
		obj.combos[1].ui.html(html);
		obj.combos[1].ui.trigger("liszt:updated");

	},
	search : function() {

	}
});

var UploadHistoryView = Backbone.View.extend({
	initialize : function() {
		this.render();
	},
	
	render : function() {
		var t = this;

		var html = $("#bulk_upload_template").html();
		this.$el.html(html);
		//this.renderFlipButton();
		// this.renderSticky();
		
	},	
	update: function(){
						
	},
	updateCategory : function(event, obj, data) {

		var html = "<option value=''></option>";
		if (!!data) {
			var arr = obj.fakeData[data.selected];
			for (var i in arr) {
				html += "<option>" + arr[i] + "</option>";
			}
		}
		obj.combos[1].ui.html(html);
		obj.combos[1].ui.trigger("liszt:updated");

	},
	search : function() {

	}
});